<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理--增加</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/meizzDate.js"></script>
<script type="text/javascript">
	function check(){
		var frm = document.form1;
		if(frm.empConEmpName.value == ""){
			alert("请输入职工名称！");
			frm.empConEmpName.focus();
			return false;
		}
		if(frm.empConEducationLevel.value == ""){
			alert("请选择文化程度！");
			return false;
		}
		if(frm.empConEmpDate.value == ""){
			alert("请选择录用日期！");
			return false;
		}
		if(frm.empConContractBeginTime.value == ""){
			alert("请选择合同开始日期！");
			frm.empConContractBeginTime.focus();
			return false;
		}
		if(frm.empConContractEndTime.value == ""){
			alert("请选择合同结束日期！");
			frm.empConContractEndTime.focus();
			return false;
		}
	}
</script>


</head>

<body>
<form name="form1" action="<%=request.getContextPath()%>/UnitContractInfo.do?method=update" method="post" onsubmit="return check()">
<input type="hidden" name="ecid" value="${param.ecid}"/>
<table width="70%">
  <tr>
    <td width="25%" align="right" class="bg_blue"><p><font color="red">*</font>&nbsp;&nbsp;职工姓名：</p>
    </td>
    <td width="75%" align="left" ><input type="text" name="empConEmpName" maxlength="20" value="${eInfo.empConEmpName}">&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>性别：</p>
    </td>
    <td align="left" ><select name="empConEmpSex"><option value="0" <c:if test="${eInfo.empConEmpSex == '0'}">selected</c:if>>男</option><option value="1" <c:if test="${eInfo.empConEmpSex == '1'}">selected</c:if>>女</option></select>&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>身份证号码：</p>
    </td>
    <td align="left" ><input type="text" name="empConIdCardNum" maxlength="20" value="${eInfo.empConIdCardNum}">&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p><font color="red">*</font>&nbsp;&nbsp;文化程度：</p>
    </td>
    <td align="left" ><cms:selectAll dataType="003" name="empConEducationLevel" firstTitle="请选择.." key="${eInfo.empConEducationLevel}"></cms:selectAll>
    </td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>户籍所在地：</p>
    </td>
    <td align="left" ><input type="text" name="empConHouse" maxlength="100" value="${eInfo.empConHouse}">&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>家庭住址：</p>
    </td>
    <td align="left" ><input type="text" name="empConAddress" maxlength="100" value="${eInfo.empConAddress}">&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>联系电话：</p>
    </td>
    <td align="left" ><input type="text" name="empConPhone" maxlength="100" value="${eInfo.empConPhone}">&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>工种：</p>
    </td>
    <td align="left" ><input type="text" name="empConWordType" maxlength="100" value="${eInfo.empConWordType}">&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>用工形式：</p>
    </td>
    <td align="left" >
    <cms:selectAll dataType="010" name="empConWorkType" firstTitle="请选择.." key="${eInfo.empConWorkType}"></cms:selectAll>
    &nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right"><p>职业资格证书：</p>
    </td>
    <td align="left" >
    <select name="empConCompetence">
	    <option value="0" <c:if test="${eInfo.empConCompetence == '0'}">selected</c:if>>无</option>
	    <option value="1" <c:if test="${eInfo.empConCompetence == '1'}">selected</c:if>>初级</option>
	    <option value="2" <c:if test="${eInfo.empConCompetence == '2'}">selected</c:if>>中级</option>
	    <option value="3" <c:if test="${eInfo.empConCompetence == '3'}">selected</c:if>>高级</option>
    </select>&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue"align="right"><p>录用日期：</p>
    </td>
    <td align="left"><input type="text" name="empConEmpDate" size="9" onclick="SelectDate(this,'yyyy-MM-dd')" readonly value="<fmt:formatDate pattern="yyyy-MM-dd" value="${eInfo.empConEmpDate}"/>"></td>
  </tr>
  <tr>
    <td class="bg_blue"align="right">合同期限：</td>
    <td align="left">
    <select name="empConContractTime">
    <option value="0" <c:if test="${eInfo.empConContractTime == '0'}">selected</c:if>>1年以下</option>
    <option value="1" <c:if test="${eInfo.empConContractTime == '1'}">selected</c:if>>1-3年</option>
    <option value="2" <c:if test="${eInfo.empConContractTime == '2'}">selected</c:if>>3-5年</option>
    <option value="3" <c:if test="${eInfo.empConContractTime == '3'}">selected</c:if>>无固定期限</option>
    </select>
    </td>
  </tr>
  <tr>
    <td class="bg_blue"align="right"><font color="red">*</font>&nbsp;&nbsp;合同开始日期：</td>
    <td align="left"><input type="text" name="empConContractBeginTime" size="9" onclick="SelectDate(this,'yyyy-MM-dd')" readonly value="<fmt:formatDate pattern="yyyy-MM-dd" value="${eInfo.empConContractBeginTime}"/>"></td>
  </tr>
  <tr>
    <td class="bg_blue"align="right"><font color="red">*</font>&nbsp;&nbsp;合同结束日期：</td>
    <td align="left"><input type="text" name="empConContractEndTime" size="9" onclick="SelectDate(this,'yyyy-MM-dd')" readonly value="<fmt:formatDate pattern="yyyy-MM-dd" value="${eInfo.empConContractEndTime}"/>"></td>
  </tr>
  <tr>
    <td class="bg_blue"align="right">工作岗位：</td>
    <td align="left"><input type="text" name="empConPost" maxlength="30" value="${eInfo.empConPost}"></td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">合同文件上传：</td>
    <td align="left"><iframe name="upload" src="<%=request.getContextPath()%>/unit/unitContractInfoUpload.jsp" frameBorder="0" width="400" height="25"></iframe>
    <br/>支持格式:.jpg;.gif<br/><span id="fileName">
    <c:if test="${!empty eInfo.empConContractFileUrl}"><font color="#FF0000">${eInfo.empConContractFileUrl}</font></c:if>
    </span>
    <input type="hidden" name="empConContractFileUrl" value="${eInfo.empConContractFileUrl}">
    </td>
  </tr>
  <tr>
    <td class="nohover" colspan="2" align="center"><input class="buttonsubmit" type="submit" value="提交">&nbsp;<input class="buttonreset" type="reset" value="重置"> <input class="buttonreturn" type="button" value="返回" onClick="javascript:window.location.href='<%=request.getContextPath()%>/UnitContractInfo.do?method=list&eid=${eInfo.empConUnitId}'"></td>
  </tr>
</table>
</form>
</body>
</html>
